package one.stand.mapper;

import one.stand.model.GoodsModel;

import java.util.List;

/**
 * @author Administrator
 */
public interface GoodsMapper {
    int deleteByPrimaryKey(Integer goodsId);

    int insertSelective(GoodsModel record);

    int insertGoodsPhoto(GoodsModel record);

    GoodsModel selectByPrimaryKey(Integer goodsId);

    int updateByPrimaryKeySelective(GoodsModel record);

    int delGoodPhoto(Integer goodsId);

    List<GoodsModel> selectGoodsInfo(GoodsModel record);

    List<GoodsModel> getGoodsInfo(GoodsModel record);

    Integer selectGoodsCount(Integer goodsId);

    GoodsModel getThanGoodsInfo(GoodsModel record);

    Integer getGoodsInfoSortMax(GoodsModel record);

    int moveGoodsInfo(GoodsModel record);
}